package com.rd.student.dashuju.zhengruixian.test0725;

public class TestSleep {
    public static void main(String[] args) {
        long before=System.currentTimeMillis();
        System.out.println(before);
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        long after=System.currentTimeMillis();
        System.out.println(after);
        System.out.println(after-before);
    }
}
